package day03;

public class OpenDemo1 {
    public static void main(String[] args) {

        //0取余任何数都为0
        System.out.println(0 % 7);
        System.out.println(0 % 8);
        System.out.println(0 % 9);

        int a = 5, b = 5;
        a++;//a++ = 5!!!
        ++b;
        System.out.println(a);//6
        System.out.println(b);//6
        System.out.println();

        int c = a++;
        int d = ++b;
        System.out.println(c);//6
        System.out.println(d);//7
        System.out.println(a);//7
        System.out.println(b);//7
        System.out.println();

        int i = 5, j = 5;
        i--;
        --j;
        System.out.println(i);//4
        System.out.println(j);//4
        System.out.println();

        int k = i--;
        int l = --j;
        System.out.println(k);//4
        System.out.println(l);//3
        System.out.println(i);//3
        System.out.println(j);//3


    }

}
